package com.netease.pris.activity.a;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.netease.framework.k;
import com.netease.image.c;
import com.netease.l.b.a;
import com.netease.pris.activity.PRISActivitySetting;
import com.netease.pris.atom.g;
import com.netease.pris.atom.u;

public class t extends i
{
  private int a;
  private int b;
  private int c = 0;
  private String[] d = null;
  private int[] e = null;
  private Context f = null;
  private LayoutInflater g = null;

  public t(Context paramContext, int paramInt, String[] paramArrayOfString, int[] paramArrayOfInt)
  {
    if (paramContext == null);
    while (true)
    {
      return;
      this.c = paramInt;
      this.d = paramArrayOfString;
      this.e = paramArrayOfInt;
      this.f = paramContext;
      this.g = LayoutInflater.from(this.f);
      this.a = c.a(this.f, 56.0F);
      this.b = this.a;
    }
  }

  private void a(z paramz, View paramView)
  {
    if ((paramz == null) || (paramView == null));
    while (true)
    {
      return;
      paramz.a = 0;
      int i = this.e.length;
      int j = 0;
      if (j < i)
      {
        View localView = paramView.findViewById(this.e[j]);
        if (this.d[j].equals("icon"))
          paramz.b = ((ImageView)localView);
        while (true)
        {
          j++;
          break;
          if (this.d[j].equals("title"))
          {
            paramz.c = ((TextView)localView);
            continue;
          }
          if (this.d[j].equals("content"))
          {
            paramz.e = ((TextView)localView);
            continue;
          }
          if (!this.d[j].equals("time"))
            continue;
          paramz.d = ((TextView)localView);
        }
      }
      paramz.f = ((LinearLayout)paramView.findViewById(2131558520));
    }
  }

  private void a(z paramz, u paramu, int paramInt)
  {
    if ((paramz == null) || (paramu == null))
      return;
    paramz.c.setText(paramu.U());
    if (paramu.u())
      paramz.c.setTextColor(k.a(this.f).c(2131230896));
    while (true)
    {
      if (paramu.J())
      {
        String str2 = a.a(this.f, paramu);
        paramz.d.setText(str2);
      }
      paramz.e.setText(paramu.X());
      paramz.f.setVisibility(8);
      String str1 = paramu.b(g.g);
      if ((str1 == null) || (PRISActivitySetting.i(this.f)))
        break;
      paramz.b.setImageDrawable(k.a(this.f).b(2130837589));
      paramz.f.setVisibility(0);
      if (paramz.a > 0)
      {
        com.netease.image.d.a().a(paramz.a, 1);
        paramz.a = 0;
      }
      paramz.a = com.netease.b.a.d.f();
      StringBuilder localStringBuilder = new StringBuilder();
      paramz.b.setTag(localStringBuilder);
      com.netease.image.d.a().a(localStringBuilder, 2, str1, new y(this, paramz), this.a, this.b, 2, paramz.a);
      break;
      paramz.c.setTextColor(k.a(this.f).c(2131230897));
    }
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    z localz2;
    if (paramView == null)
    {
      paramView = this.g.inflate(this.c, null);
      localz2 = new z(this);
      a(localz2, paramView);
      paramView.setTag(localz2);
    }
    for (z localz1 = localz2; ; localz1 = (z)paramView.getTag())
    {
      u localu = (u)getItem(paramInt);
      if (localu != null)
        a(localz1, localu, paramInt);
      return paramView;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.a.t
 * JD-Core Version:    0.6.0
 */